-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to AndroidX #4
base: master
Are you sure you want to change the base?
Conversation
@xamarindevelopervietnam Thanks for the PR, have added some comments, please check |
Hi @muhaym, i didn't see any comment. |
using Xamarin.Forms; | ||
using Android.Support.Design.BottomNavigation; | ||
using Google.Android.Material.BottomNavigation; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/xamarin/Xamarin.Forms/blob/7a52542d50797ccc69ae1d8dd84259190d96bdb4/Xamarin.Forms.Platform.Android/AppCompat/TabbedPageRenderer.cs#L10
Use compiler directive approach for providing support for previous versions too
eg. #if ANDROID_29
@@ -70,7 +68,7 @@ private void UpdateIcons(int selectedIndex) | |||
var icon = Transforms.GetSelectedIcon(page); | |||
if (string.IsNullOrWhiteSpace(icon)) | |||
{ | |||
menu.GetItem(i).SetIcon(IdFromTitle(page.IconImageSource ?? page.Icon, ResourceManager.DrawableClass)); | |||
menu.GetItem(i).SetIcon(IdFromTitle(page.IconImageSource ?? page.IconImageSource, ResourceManager.DrawableClass)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why you did this change. If IconImageSource is already set, it will be taken, then page.Icon.
Forgot to Submit Review :D, Added Now |
Migrate to AndroidX